layui.use(['LDLayout', 'form', 'layer'], function () {
    var LDLayout = layui.LDLayout,
        layer = layui.layer,
        form = layui.form;

    // 设置中间内容区 最小高度
    LDLayout.setMinHeight();
    $(window).on('resize', LDLayout.setMinHeight);

    /* 事件绑定 */
    // 证书图片上传
    $('#upload_btn_hook').on('click', function () {
        $('#file_hook').trigger('click')
    })
    $('#file_hook').on('click', function (ev) {
        ev.stopPropagation();
    })
    $('#file_hook').on('change', function (ev) {
        var files = ev.target.files;
        if (files[0]) {
            $('#upload_image_name').html(files[0].name)
        }
        console.log(files)
    })
});
